package com.fastloan.mgt.invest.weixin.model.token;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 微信token返回
 * {"access_token":"r9eVQ6WSNN_AdzeQYiO8whmhLXgbtUgp1Xm6YA9WivAbQgqaxdufcOP56r2ESBN_laZwIvCHKTVtnzcJD0r3EXExqHZ7nzDX_wl1sT-LYOM8zEBiQN9EOGr0OGowk4iLUVRgABAMNJ","expires_in":7200}
 */
public class TokenModel {

    @JSONField(name = "access_token")
    private String accessToken; //access_token
    @JSONField(name = "expires_in")
    private String expiresIn; //过期时间
    @JSONField(name = "errcode")
    private String errCode; //错误码
    @JSONField(name = "errmsg")
    private String errMsg;  //错误消息

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(String expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    @Override
    public String toString() {
        return "TokenModel{" +
                "accessToken='" + accessToken + '\'' +
                ", expiresIn='" + expiresIn + '\'' +
                ", errCode='" + errCode + '\'' +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }
}
